<?php
class Appversion extends CI_Controller{
	function __construct(){
		parent::__construct();
		$this->load->model('appversion_m','vers');
		$this->load->library('result');
	}
	
	function checkVersion(){
		//$code=$this->input->post('code');
		$code=0;
		
		$data=$this->vers->query($code);
		if(empty($data)){
			$this->result->setData(1,'没有新版本',null);
		}else{
			$this->result->setData(0,'发现新版本',$data);
		}
		$this->result->output();
	}
}